/**
 * Project Name:JavaBaseReview
 * Package Name:com.xuwei.base.queue
 * author:David
 * Date:2016年5月9日下午2:02:32
 * Copyright (c) 2016, xw123box@126.com All Rights Reserved.
 *
 */
package com.xuwei.base.queue;

/**
 * @author David
 * @since 2016年5月9日 下午2:02:32
 * @version 
 * @since JDK 1.6
 */
public class QueueTest {

	public static void main(String[] args) {
		QueueArray queue=new QueueArray(0);
		System.out.println(queue.getSize());
		System.out.println("-------------------------------");
		queue.enqueue(new Integer(1));
		queue.enqueue(new Integer(2));
		queue.enqueue(new Integer(3));
		queue.enqueue(new Integer(4));
		queue.enqueue(new Integer(5));
		queue.enqueue(new Integer(6));
		queue.enqueue(new Integer(7));
		queue.enqueue(new Integer(8));
		queue.enqueue(new Integer(9));
		queue.enqueue(new Integer(10));
		queue.enqueue(new Integer(11));
		queue.enqueue(new Integer(12));
		queue.enqueue(new Integer(13));
		queue.enqueue(new Integer(14));
		queue.enqueue(new Integer(15));
		System.out.println(queue.getSize());
		System.out.println(queue.peek());
		System.out.println("----------------------------------");
		queue.dequeue();
		System.out.println(queue.getSize());
		System.out.println(queue.peek());
	}
}
